<?php
// +---------------------------------------------------------------------+
// | OneBase    | [ WE CAN DO IT JUST THINK ]                            |
// +---------------------------------------------------------------------+
// | Licensed   | http://www.apache.org/licenses/LICENSE-2.0 )           |
// +---------------------------------------------------------------------+
// | Author     | Bigotry <3162875@qq.com>                               |
// +---------------------------------------------------------------------+
// | Repository | https://gitee.com/Bigotry/OneBase                      |
// +---------------------------------------------------------------------+

namespace app\api\validate;

/**
 *面试邀请信息验证器
 */
class Interview extends ApiBase
{
    
    // 验证规则
    protected $rule = [
        'user_id'  => 'require',
		'getid'  => 'require',
        'work_id'  => 'require',
		'work'  => 'require',
		'day'  => 'require',
		'his'  => 'require',
		'address'  => 'require',
		'phone'  => 'require'
    ];

    // 验证提示
    protected $message = [
		'user_id.require'    => '请输入企业用户',
		'getid.require'    => '请选择邀请用户',
		'work_id.unique'       => '请选择面试职位',
        'work.require'    => '职位名称不能为空',
		'day.require'    => '面试日期不能为空',
		'his.require'    => '面试时间不能为空',
		'address.require'    => '面试地址不能为空',
		'phone.require'    => '联系电话不能为空',
    ];

    // 应用场景
    protected $scene = [       
        'interview'  =>  ['user_id','getid','work_id','work','day','his','address','phone'],
    ];
}
